package com.taxi.driver.module.order.price;

import android.content.Context;

import com.qianxx.adapter.SuperAdapter;
import com.qianxx.adapter.internal.SuperViewHolder;
import com.qianxx.utils.TypeUtils;
import com.taxi.driver.R;
import com.taxi.driver.data.entity.OrderCostItemEntity;

import java.util.ArrayList;

/**
 * 功能描述：
 */
public class PriceDetailAdapter extends SuperAdapter<OrderCostItemEntity> {

    public PriceDetailAdapter(Context context, int layoutId) {
        super(context, new ArrayList<>(), layoutId);
    }

    @Override
    public void onBind(SuperViewHolder holder, int viewType, int position, OrderCostItemEntity item) {
        holder.setText(R.id.tv_tag, TypeUtils.getValue(item.item))
                .setText(R.id.tv_value, TypeUtils.getValue(item.cost)+"元");
    }

}
